package com.hitqz.robot.camera.dto;

import cn.hutool.core.util.StrUtil;

/**
 * @author xupkun
 * @date 2024/11/2
 */
public class EquipmentParamsDto {

    private String label;

    private String key;

    private String value;

    /**
     * 某些枚举值的结果， 例如聚焦模式 手动 - 自动 半自动
     */
    private String valueFor;

    public EquipmentParamsDto() {

    }

    public EquipmentParamsDto(String label, String key, String value, String valueFor) {
        this.label = label;
        this.key = key;
        this.value = value;
        this.valueFor = StrUtil.isNotBlank(valueFor) ? valueFor : value;
    }


    public String getLabel() {
        return label;
    }

    public void setLabel(String label) {
        this.label = label;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }


    public String getValueFor() {
        return valueFor;
    }

    public void setValueFor(String valueFor) {
        this.valueFor = valueFor;
    }
}
